import numpy as np
import cv2 as cv
import matplotlib.pyplot as plt
picture = cv.imread("./WechatIMG46173.jpeg")
r,g,b = cv.split(picture)
picture_fft = np.fft.fft2(r)
picture_fft_real = picture_fft.real
picture_struct =np.fft.ifft2(picture_fft_real)
plt.subplot(221)
plt.imshow(picture_struct.real)

# plt.imshow(20*SobelResult)
# plt.imshow(np.log(np.abs(rMove + gMove + bMove + dMove - 4*rMove)))
# plt.imshow(DataSpect)
plt.show()